package com.inspur.dgov.bsp.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.inspur.dgov.bsp.system.mapper.TreeMapper;
import com.inspur.dgov.bsp.system.service.TreeService;
import com.inspur.dgov.common.tool.node.TreeNode;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 系统各种树服务实现类
 *
 * @Author chiyupei
 * @Date 19/9/24 上午10:29
 * @Version 1.0
 * @Description 系统各种树服务实现类
 */
@Slf4j
@Service
@AllArgsConstructor
public class TreeServiceImpl extends ServiceImpl<TreeMapper, TreeNode> implements TreeService {

    /**
     * 字典类别树
     *
     * @return
     */
    @Override
    public List<TreeNode> configTree(Map<String, Object> config) {
        return baseMapper.configTree(config);
    }

    /**
     * 字典树
     *
     * @return
     */
    @Override
    public List<TreeNode> dictTree(Map<String, Object> param) {
        return baseMapper.dictTree(param);
    }
}